{section name=m loop=$movies}
<a href="./?go=movie&id={$movies[m]->id}">
	<div id="movie_{$movies[m]->id}" class="movie_box{if ($smarty.section.m.index + 1) % 4 == 0} last{/if}">
		<div class="movie_cover">
			{if $movies[m]->hasPhoto()}<img src="{$movies[m]->photo()}" alt="{$movies[m]->name|htmlentities:3:'UTF-8'}" title="{$movies[m]->name|htmlentities:3:'UTF-8'}" />
			{elseif $movies[m]->hasCover()}<img src="{$movies[m]->cover()}" alt="{$movies[m]->name|htmlentities:3:'UTF-8'}" title="{$movies[m]->name|htmlentities:3:'UTF-8'}" />
			{else}<div class="nocover" alt="{$movies[m]->name|htmlentities:3:'UTF-8'}" title="{$movies[m]->name|htmlentities:3:'UTF-8'}">{$smarty.const.NO_COVER|htmlentities:3:'UTF-8'}</div>{/if}
		</div>
		<div class="title">{$movies[m]->name|htmlentities:3:'UTF-8'}</div>
	</div>
</a>
{sectionelse}
<div class="content">{$smarty.const.NO_RESULTS_FOUND|htmlentities:3:'UTF-8'}</div>
{/section}

{include file="movies/pager.html"}

<div style="clear: both;"></div>